package com.ruoyi.equip.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2024-05-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tag_info")
@ApiModel(value="TagInfo对象", description="")
public class TagInfo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "平台ID")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "设备ID")
    @TableField("sb_id")
    private String sbId;

    @ApiModelProperty(value = "设备名称")
    @TableField("tag_name")
    private String tagName;

    @ApiModelProperty(value = "设备类型")
    @TableField("node_type")
    private String nodeType;

    @ApiModelProperty(value = "父级id")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty(value = "所属产品ID")
    @TableField("product_key")
    private String productKey;

    @ApiModelProperty(value = "设备在线时间")
    @TableField("online_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date  onlineTime;

    @ApiModelProperty(value = "设备离线时间")
    @TableField("offline_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date  offlineTime;


    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date  updateTime;

    private int ant;

    private int type;

    private int state;

    private int max;

    private int min;



}
